<!--
**********************************************************
* @Author: 张小平
* @Date:   2024-05-01
* @Email:  qqshuqian@163.com
* @Last modified: 最后修改日期
* @Description: 文件描述
**********************************************************
-->
<template>
  <li>
    {{tree.name}}
    <ul v-if="tree.node && tree.node.length > 0">
      <Item v-for="(node, index) in tree.node"
      :tree="node" :key="index" />
    </ul>
  </li>
</template>

<script>
 import Item from './node/Item.vue'
export default {
   components: { Item },
  name: 'Item',
  props: {
    tree: Object
  }
}
</script>
